rem https://docs.microsoft.com/zh-cn/dotnet/core/tools/dotnet-publish
rem https://docs.microsoft.com/zh-cn/dotnet/core/rid-catalog#windows-rids
set p_runtime=win-x64
set p_framework=net8.0
set p_build=Release
@REM set p_build=Debug
set p_publish=%~dp0build/%p_runtime%

set pR=--runtime %p_runtime%
set pF=--framework %p_framework%
set pC=--configuration %p_build%
set pSC=--self-contained true
set pO=--output %p_publish%
set pSF=-p:PublishSingleFile=false
set pRTR=-p:PublishReadyToRunShowWarnings=true -p:PublishReadyToRun=false
set pT=-p:PublishTrimmed=false

dotnet publish %pF% %pR% %pC%  %pSC% %pO% %pSF% %pRTR% %pT% "LogServerApi"
pause
